package com.cmdi.feign;

import com.cmdi.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: java类作用描述
 * @Author: gaozb
 * @Date: 2021/9/1$ 11:23$
 * @Version: 1.0
 */
@FeignClient(value = ServiceNameConstants.GATEWAY_SERVICE_NAME,
        fallbackFactory = RemoteGatewayServiceFeignClientFallBackFactory.class)
public interface RemoteGatewayServiceFeignClient {

    @GetMapping("/route/update")
    ResponseEntity<Boolean> updateRoute(
            // 授权类型
            @RequestParam("gwkey") String gwKey
    );

}